import { GlobalStore } from "@/stores";
import logo from "@/assets/images/logo.png";
import { SYSTEM_ID } from "@/config/config";

/**
 * @description 获取本地时间
 */
export const sysTitle = () => {
	return GlobalStore().setting.isSysTitle ? GlobalStore().setting.systemName || import.meta.env.VITE_GLOB_APP_TITLE : "";
};
export const version = () => {
	return (SYSTEM_ID + import.meta.env.VITE_APP_VER) as string;
};
export const sysLogo = () => {
	return GlobalStore().setting.logo == logo ? logo : `${filePrefix()}${GlobalStore().setting.logo}`;
};
export const filePrefix = () => {
	return "/api/file/download/";
};
